package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MydeviceinfoMapper;
import com.ruoyi.system.domain.Mydeviceinfo;
import com.ruoyi.system.service.IMydeviceinfoService;

/**
 * bumenbiaoService业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-21
 */
@Service
public class MydeviceinfoServiceImpl implements IMydeviceinfoService 
{
    @Autowired
    private MydeviceinfoMapper mydeviceinfoMapper;

    /**
     * 查询bumenbiao
     * 
     * @param id bumenbiaoID
     * @return bumenbiao
     */
    @Override
    public Mydeviceinfo selectMydeviceinfoById(Long id)
    {
        return mydeviceinfoMapper.selectMydeviceinfoById(id);
    }

    /**
     * 查询bumenbiao列表
     * 
     * @param mydeviceinfo bumenbiao
     * @return bumenbiao
     */
    @Override
    @DataScope(deptAlias = "d")
    public List<Mydeviceinfo> selectMydeviceinfoList(Mydeviceinfo mydeviceinfo)
    {
        return mydeviceinfoMapper.selectMydeviceinfoList(mydeviceinfo);
    }

    /**
     * 新增bumenbiao
     * 
     * @param mydeviceinfo bumenbiao
     * @return 结果
     */
    @Override
    public int insertMydeviceinfo(Mydeviceinfo mydeviceinfo)
    {
        return mydeviceinfoMapper.insertMydeviceinfo(mydeviceinfo);
    }

    /**
     * 修改bumenbiao
     * 
     * @param mydeviceinfo bumenbiao
     * @return 结果
     */
    @Override
    public int updateMydeviceinfo(Mydeviceinfo mydeviceinfo)
    {
        return mydeviceinfoMapper.updateMydeviceinfo(mydeviceinfo);
    }

    /**
     * 批量删除bumenbiao
     * 
     * @param ids 需要删除的bumenbiaoID
     * @return 结果
     */
    @Override
    public int deleteMydeviceinfoByIds(Long[] ids)
    {
        return mydeviceinfoMapper.deleteMydeviceinfoByIds(ids);
    }

    /**
     * 删除bumenbiao信息
     * 
     * @param id bumenbiaoID
     * @return 结果
     */
    @Override
    public int deleteMydeviceinfoById(Long id)
    {
        return mydeviceinfoMapper.deleteMydeviceinfoById(id);
    }
}
